all: lyf.exe

lyf.exe: board.o cell.o grid.o main.o ruleset.o
	g++ main.o cell.o board.o ruleset.o grid.o -lmingw32 -o lyf.exe

board.o: board.cpp
	g++ -c -O3 -Wall board.cpp

cell.o: cell.cpp
	g++ -c -O3 -Wall cell.cpp

main.o: main.cpp
	g++ -c -O3 -Wall main.cpp

ruleset.o: ruleset.cpp
	g++ -c -O3 -Wall ruleset.cpp

grid.o: grid.cpp
	g++ -c -O3 -Wall grid.cpp